(function($){
 $(function(){
       	$("#image").uploadify({
    		swf:$("#webRoot").val()+"static/plugin/uploadify/uploadify.swf",
    		uploader:$("#webRoot").val()+"/uploadImage",
    		fileObjName:"file",
    		auto:false,
    		method:'post', 
    		height:30,
    		width:130,
    		/**
    		 * 改变显示的文字
    		 */
    		 buttonText:"选择图片",
    		 onUploadSuccess:function(data){
    			 
    		 }
    	});
	    	
	    	$("#bt1").click(function(){
	    		var parentId = $("#parent").val();
	    		var type = $("#type").val();
                var pictureId = $("#pictureId").val() || "";
	    		var data ={"parentId":parentId,"type":type,"id":pictureId};
                console.log(data);
                $("#image").uploadify("settings","formData",data);  
	    		$("#image").uploadify("upload","*");
	    		return false;
	    	}); 
         });
})(jQuery);
      